package com.mornd.gulimall.common.core.result;

import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author: mornd
 * @dateTime: 2023/8/5 - 21:37
 */

public class PageConverter {
//    private long total;
//    private long pages;
//    private long current;
//    private long size;
//    private List<T> records;

    /**
     * po 转 vo
     *
     * @param page
     * @param list
     * @return
     */
    public static IPage convert(IPage page, List list) {
        page.setRecords(list);
        return page;
    }
}
